﻿using System.Windows;
using System.Windows.Controls;
using LiveTiss.Schemas;

namespace LiveTiss.Guias.UserControls
{
    public partial class ValorTotalServicos : UserControl
    {
        #region Value

        public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value",
            typeof(ct_valorTotalServicos), typeof(ValorTotalServicos), new PropertyMetadata(null));

        public ct_valorTotalServicos Value
        {
            get { return (ct_valorTotalServicos)GetValue(ValueProperty); }
            set { SetValue(ValueProperty, value); }
        }

        #endregion

        public ValorTotalServicos()
        {
            this.DataContext = this;

            if (this.Value == null)
            {
                this.Value = new ct_valorTotalServicos()
                {
                    diarias = 0,
                    diariasSpecified = true,
                    gases = 0,
                    gasesSpecified = true,
                    materiais = 0,
                    materiaisSpecified = true,
                    medicamentos = 0,
                    medicamentosSpecified = true,
                    servicosExecutados = 0,
                    servicosExecutadosSpecified = true,
                    taxas = 0,
                    taxasSpecified = true,
                    totalGeral = 0,
                    totalGeralSpecified = true
                };
            }

            InitializeComponent();
        }
    }
}
